package com.ontimedo;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
 
public class SplashScreen extends Activity {
   /** Called when the activity is first created. */
	boolean firstStart = true;
   @Override
   public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.splash);
      Thread splashThread = new Thread() {
         @Override
         public void run() {
            try {
               int waited = 0;
               if(firstStart)
	               {
	               while (waited < 5000) {
	                  sleep(100);
	                  waited += 100;
	               }
	               firstStart=false;
               }
            } catch (InterruptedException e) {
               // do nothing
            } finally {
            	finish();
                Intent i = new Intent();
                i.setClassName("com.ontimedo",
                		"com.ontimedo.Ontimedo");
              startActivity(i);
            }
         }
      };
      splashThread.start();
   }
}